﻿<?php
/**
 * @package		Joomla.Site
 * @subpackage	mod_articles_latest
 * @copyright	Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

// no direct access
defined('_JEXEC') or die;
?>

<ul class="latestnews<?php echo $moduleclass_sfx; ?>">
<?php foreach ($list as $item) :  ?>
	<li>
		<a href="<?php echo $item->link; ?>">
			<?php
				//Ham cat chu
				$new_str = '';
				$pieces = explode(' ', $item->title);
				for($i=0;$i<6;$i++){
					$new_str .= $pieces[$i].' ';
				}
				$new_str .= '…';
			?>
			<?php echo $new_str;//substr($item->title,0, 40)."..."; ?></a>
	</li>
<?php endforeach; ?>
</ul>
